package com.ruoyi.training.domain;

import java.math.BigDecimal;

import com.ruoyi.common.constant.training.CurriculumConstants;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 培训计划抽卷对象 tb_train_plan_exam
 *
 * @author wng
 * @date 2024-08-04
 */
public class TrainPlanExam extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 计划id
     */
    @Excel(name = "计划id")
    private Long planId;

    /**
     * 课程id
     */
    @Excel(name = "课程id")
    private Long curriculumId;

    /**
     * 章节id
     */
    @Excel(name = "章节id")
    private Long chapterId;

    /**
     * 题目类型
     * 单选 Single
     * 多选 Multi
     * 判断 Judge
     */
    @Excel(name = "题目类型 " +
            "单选 Single " +
            "多选 Multi " +
            "判断 Judge")
    private CurriculumConstants.TopicTypeEnum topicType;

    /**
     * 题量
     */
    @Excel(name = "题量")
    private String topicCount;

    /**
     * 每题分值
     */
    @Excel(name = "每题分值")
    private BigDecimal score;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;


    /**
     * examTitle
     */
    private String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPlanId(Long planId) {
        this.planId = planId;
    }

    public Long getPlanId() {
        return planId;
    }

    public void setCurriculumId(Long curriculumId) {
        this.curriculumId = curriculumId;
    }

    public Long getCurriculumId() {
        return curriculumId;
    }

    public void setChapterId(Long chapterId) {
        this.chapterId = chapterId;
    }

    public Long getChapterId() {
        return chapterId;
    }

    public CurriculumConstants.TopicTypeEnum getTopicType() {
        return topicType;
    }

    public void setTopicType(CurriculumConstants.TopicTypeEnum topicType) {
        this.topicType = topicType;
    }

    public void setTopicCount(String topicCount) {
        this.topicCount = topicCount;
    }

    public String getTopicCount() {
        return topicCount;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("planId", getPlanId())
                .append("curriculumId", getCurriculumId())
                .append("chapterId", getChapterId())
                .append("topicType", getTopicType())
                .append("topicCount", getTopicCount())
                .append("score", getScore())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
